import axios from '@/libs/request/axios'
// 获取豁免费用列表 多条件
export const getCostExemptList = (params) => {
    return axios.request({
        url: '/contractManage/costExempt/getCostExemptListByCondition',
        data:params,
        method: 'post'
    })
}

// 根据合同号获取豁免费用列表
export const getCostExemptListByExemptId = (params) => {
    return axios.request({
        url: '/contractManage/costExempt/getCostExemptListByExemptId',
        data:params,
        method: 'post'
    })
}

//获取可做豁免费用的合同
export const getCanCostExemptListByCondition = (params) => {
    return axios.request({
        url: '/contractBasic/costExempt/getCanCostExemptListByCondition',
        data:params,
        method: 'post'
    })
}

//保存豁免费用信息
export const saveCostExemptList = (params) => {
    return axios.request({
        url: '/contractManage/costExempt/saveCostExemptList',
        data:params,
        method: 'post'
    })
}

//提交豁免费用信息(提交工作流)
export const submitCostExemptList = (params) => {
    return axios.request({
        url: '/contractManage/costExempt/submitCostExemptList',
        data:params,
        method: 'post'
    })
}

//获取合同下豁免金额列表
export const getCanCostExemptListByContractNo = (params) => {
    return axios.request({
        url: '/contractBasic/costExempt/getCanCostExemptListByContractNo',
        data:params,
        method: 'post'
    })
}

//删除豁免费用信息
export const delCostExemptInfo = (id,params) => {
    return axios.request({
        url: `/contractManage/costExempt/delCostExemptInfo/${id}`,
        params:params,
        method: 'get'
    })
}

//费用豁免审批
export const costExemptApprove = (params) => {
    return axios.request({
        url: '/contractManage/costExemptWorkFlow/costExemptApprove',
        data:params,
        method: 'post'
    })
}







